﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DatabaseSynchronizer {
    
    public class BaseForm : Form {

        private SettingsService _service;
        private TFSService _tfsService;
        
        protected Uri _tfsUri;


        protected SettingsService SettingsService { 
            
            get{
                
                if (_service == null) {
                    _service = new SettingsService();
                }

                return _service;
            }
        }

        protected TFSService TFSService {

            get {

                if (_tfsService == null) {
                    _tfsService = new TFSService(_tfsUri, null);
                }

                return _tfsService;
            }
        }
    }
}
